<!-- HTML header for doxygen 1.9.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CMSIS-Core (Cortex-M): CMSIS-Core Files</title>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="tabs.js"></script>
<script type="text/javascript" src="footer.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<script type="text/javascript" src="darkmode_toggle.js"></script>
<link href="extra_stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="extra_navtree.css" rel="stylesheet" type="text/css"/>
<link href="extra_search.css" rel="stylesheet" type="text/css"/>
<link href="extra_tabs.css" rel="stylesheet" type="text/css"/>
<link href="version.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../version.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 55px;">
  <td id="projectlogo" style="padding: 1.5em;"><img alt="Logo" src="cmsis_logo_white_small.png"/></td>
  <td style="padding-left: 1em; padding-bottom: 1em;padding-top: 1em;">
   <div id="projectname">CMSIS-Core (Cortex-M)
   &#160;<span id="projectnumber"><script type="text/javascript">
     <!--
     writeHeader.call(this);
     writeVersionDropdown.call(this, "CMSIS-Core (Cortex-M)");
     //-->
    </script>
   </span>
   </div>
   <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
  <!--END !PROJECT_NAME-->
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<div id="CMSISnav" class="tabs1">
  <ul class="tablist">
    <script type="text/javascript">
      writeComponentTabs.call(this);
    </script>
  </ul>
</div>
<script type="text/javascript">
  writeSubComponentTabs.call(this);
</script>
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('cmsis_core_files.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div><div class="header">
  <div class="headertitle"><div class="title">CMSIS-Core Files </div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p><a class="anchor" id="md_src_core_std_files"></a> CMSIS-Core files can be differentiated in two main groups:</p>
<ol type="1">
<li><a class="el" href="cmsis_core_files.html#cmsis_standard_files">CMSIS-Core Standard Files</a> are provided by Arm for supported CPU cores as part of the CMSIS-Core software component. These files typically do not require any modifications and are expected to be included via CMSIS-Core device files.</li>
<li><a class="el" href="cmsis_device_files.html">CMSIS-Core Device Files</a> are specified in CMSIS-Core methodology, and are typically provided by CPU device vendors to correctly cover their specific functionalities. Some of them may expect additional application-specific changes.</li>
</ol>
<p>The detailed file structure of the CMSIS-Core files is shown in the following picture.</p>
<div class="image">
<img src="CMSIS_CORE_Files.png" alt=""/>
<div class="caption">
CMSIS-Core File Structure</div></div>
    <p><a class="el" href="cmsis_files_dfps.html">Delivery in CMSIS-Packs</a> explains how <a class="el" href="cmsis_core_files.html">CMSIS-Core Files</a> can be distributed in CMSIS-Pack format.</p>
<h1><a class="anchor" id="cmsis_standard_files"></a>
CMSIS-Core Standard Files</h1>
<p>The CMSIS-Core Standard file implement all attributes specific to Arm processor cores and generally do not need any modifications.</p>
<p>The files are provided by Arm as CMSIS-Core software component that is part of the <a href="../General/cmsis_pack.html">CMSIS Software pack</a>. The CMSIS-Core standard files can be split into following categories explained below:</p>
<ul>
<li><a class="el" href="cmsis_core_files.html#cmsis_processor_files">CMSIS-Core Processor Files</a></li>
<li><a class="el" href="cmsis_core_files.html#cmsis_compiler_files">CMSIS-Core Compiler Files</a></li>
<li><a class="el" href="cmsis_core_files.html#cmsis_feature_files">CMSIS-Core Architecture Feature Files</a></li>
</ul>
<h2><a class="anchor" id="cmsis_processor_files"></a>
CMSIS-Core Processor Files</h2>
<p>The CMSIS-Core processor files define the core peripherals and provide helper functions for their access.</p>
<p>The files have naming convention <code>core_&lt;cpu&gt;.h</code>, with one file available for each supported processor <code>&lt;cpu&gt;</code> as listed in the table below.</p>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadLeft">Header File   </th><th class="markdownTableHeadLeft">Target Processor Core    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">📂 CMSIS/Core/Include   </td><td class="markdownTableBodyLeft">CMSIS-Core include folder (<a href="https://github.com/ARM-software/CMSIS_6/tree/main/CMSIS/Core/Include/">See on GitHub</a>)    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">┣ 📄 core_cm0.h   </td><td class="markdownTableBodyLeft">Cortex-M0 processor    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">┣ 📄 core_cm0plus.h   </td><td class="markdownTableBodyLeft">Cortex-M0+ processor    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">┣ 📄 core_cm1.h   </td><td class="markdownTableBodyLeft">Cortex-M1 processor    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">┣ 📄 core_cm3.h   </td><td class="markdownTableBodyLeft">Cortex-M3 processor    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">┣ 📄 core_cm4.h   </td><td class="markdownTableBodyLeft">Cortex-M4 processor    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">┣ 📄 core_cm7.h   </td><td class="markdownTableBodyLeft">Cortex-M7 processor    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">┣ 📄 core_cm23.h   </td><td class="markdownTableBodyLeft">Cortex-M23 processor    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">┣ 📄 core_cm33.h   </td><td class="markdownTableBodyLeft">Cortex-M33 processor    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">┣ 📄 core_cm35p.h   </td><td class="markdownTableBodyLeft">Cortex-M35P processor    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">┣ 📄 core_cm52.h   </td><td class="markdownTableBodyLeft">Cortex-M52 processor    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">┣ 📄 core_cm55.h   </td><td class="markdownTableBodyLeft">Cortex-M55 processor    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">┣ 📄 core_cm85.h   </td><td class="markdownTableBodyLeft">Cortex-M85 processor    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">┣ 📄 core_starmc1.h   </td><td class="markdownTableBodyLeft">STAR-MC1 processor    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">┣ 📄 core_sc000.h   </td><td class="markdownTableBodyLeft">SC000 processor    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">┗ 📄 core_sc300.h   </td><td class="markdownTableBodyLeft">SC300 processor   </td></tr>
</table>
<p>The files also include the <a class="el" href="cmsis_core_files.html#cmsis_compiler_files">CMSIS-Core Compiler Files</a> and depending on the features supported by the core also correponding <a class="el" href="cmsis_core_files.html#cmsis_feature_files">CMSIS-Core Architecture Feature Files</a>.</p>
<h2><a class="anchor" id="cmsis_compiler_files"></a>
CMSIS-Core Compiler Files</h2>
<p>The CMSIS-Core compiler files provide consistent implementations of <code>#define</code> symbols that allow toolchain-agnostic usage of CMSIS-Core. <a class="el" href="cmsis_core_files.html#cmsis_processor_files">CMSIS-Core Processor Files</a> rely on such toolchain-agnostic abstractions by including <code>cmsis_compiler.h</code> file that then selects the target compiler-specific implementatation depending on the toolchain used in the project.</p>
<p>CMSIS-Core compiler files are provided in <code>CMSIS/Core/Include/</code> directory, and define the supported compilers as listed in <a class="el" href="index.html#tested_tools_sec">Tested and Verified Toolchains</a>. <a class="el" href="group__compiler__conntrol__gr.html">Compiler Control</a> documents the functionalities provided by the CMSIS compliant toolchains.</p>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadLeft">Header File   </th><th class="markdownTableHeadLeft">Description    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">📂 CMSIS/Core/Include   </td><td class="markdownTableBodyLeft">CMSIS-Core include folder (<a href="https://github.com/ARM-software/CMSIS_6/tree/main/CMSIS/Core/Include/">See on GitHub</a>)    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">┣ 📄 cmsis_compiler.h   </td><td class="markdownTableBodyLeft">Main CMSIS-Core compiler header file    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">┗ 📂 m-profile   </td><td class="markdownTableBodyLeft">Directory for M-Profile specific files    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">&emsp;&#160; ┣ 📄 cmsis_armclang_m.h   </td><td class="markdownTableBodyLeft">CMSIS-Core Arm Clang compiler file for Cortex-M    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">&emsp;&#160; ┣ 📄 cmsis_clang_m.h   </td><td class="markdownTableBodyLeft">CMSIS-Core Clang compiler file for Cortex-M    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">&emsp;&#160; ┣ 📄 cmsis_gcc_m.h   </td><td class="markdownTableBodyLeft">CMSIS-Core GCC compiler file for Cortex-M    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">&emsp;&#160; ┣ 📄 cmsis_iccarm_m.h   </td><td class="markdownTableBodyLeft">CMSIS-Core IAR compiler file for Cortex-M    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">&emsp;&#160; ┗ 📄 cmsis_tiarmclang_m.h   </td><td class="markdownTableBodyLeft">CMSIS-Core TI Clang compiler file   </td></tr>
</table>
<h2><a class="anchor" id="cmsis_feature_files"></a>
CMSIS-Core Architecture Feature Files</h2>
<p>Several architecture-specific features are implemented in separate header files that then gets included by <a class="el" href="cmsis_core_files.html#cmsis_processor_files">CMSIS-Core Processor Files</a> if corresponding feature is supported.</p>
<p>For Cortex-M cores following architecture feature files are provided in the <code>CMSIS/Core/Include/m-profile/</code> folder:</p>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadLeft">Header File   </th><th class="markdownTableHeadLeft">Feature    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">📂 CMSIS/Core/Include   </td><td class="markdownTableBodyLeft">CMSIS-Core include folder (<a href="https://github.com/ARM-software/CMSIS_6/tree/main/CMSIS/Core/Include/">See on GitHub</a>)    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">┣ 📂 m-profile   </td><td class="markdownTableBodyLeft">Directory for M-Profile specific files    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">&emsp;&#160; ┣ 📄 armv7m_cache1.h   </td><td class="markdownTableBodyLeft"><a class="el" href="group__cache__functions__m7.html">Cache Functions (Level-1)</a>    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">&emsp;&#160; ┣ 📄 armv7m_mpu.h   </td><td class="markdownTableBodyLeft"><a class="el" href="group__mpu__functions.html">MPU Functions for Armv6-M/v7-M</a>    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">&emsp;&#160; ┣ 📄 armv8m_mpu.h   </td><td class="markdownTableBodyLeft"><a class="el" href="group__mpu8__functions.html">MPU Functions for Armv8-M</a>    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">&emsp;&#160; ┣ 📄 armv8m_pmu.h   </td><td class="markdownTableBodyLeft"><a class="el" href="group__pmu8__functions.html">PMU Functions for Armv8.1-M</a>    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">&emsp;&#160; ┗ 📄 armv81m_pac.h   </td><td class="markdownTableBodyLeft">PAC functions    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">┗ 📄 tz_context.h   </td><td class="markdownTableBodyLeft">API header file for <a class="el" href="group__context__trustzone__functions.html">RTOS Context Management</a>   </td></tr>
</table>
<h2><a class="anchor" id="core_version_sect"></a>
CMSIS Version and Processor Information</h2>
<p><a class="el" href="group__version__control__gr.html#ga39f3d64ff95fb58feccc7639e537ff89">__CM_CMSIS_VERSION</a> is defined in the <code>cmsis_version.h</code> file and provides the version of the CMSIS-Core (Cortex-M). It is constructed as follows:</p>
<div class="fragment"><div class="line"><span class="preprocessor">#define __CM_CMSIS_VERSION_MAIN  ( 5U)                                    </span><span class="comment">/* [31:16] CMSIS Core(M) main version */</span><span class="preprocessor"></span></div>
<div class="line"><span class="preprocessor">#define __CM_CMSIS_VERSION_SUB   ( 7U)                                    </span><span class="comment">/* [15:0]  CMSIS Core(M) sub version */</span><span class="preprocessor"></span></div>
<div class="line"><span class="preprocessor">#define __CM_CMSIS_VERSION       ((__CM_CMSIS_VERSION_MAIN &lt;&lt; 16U) | \</span></div>
<div class="line"><span class="preprocessor">                                   __CM_CMSIS_VERSION_SUB           )     </span><span class="comment">/* CMSIS Core(M) version number */</span><span class="preprocessor"></span></div>
</div><!-- fragment --><p>The <code>cmsis_version.h</code> is included by each <code>cpu_&lt;core&gt;.h</code> so the CMSIS version defines are available via them already.</p>
<p>The <code>cpu_&lt;core&gt;.h</code> files use specific defines (such as <a class="el" href="group__version__control__gr.html#ga63ea62503c88acab19fcf3d5743009e3">__CORTEX_M</a>) that provide identification of the target processor core.</p>
<p>These defines can be used in the <a class="el" href="device_h_pg.html">Device Header File &lt;Device.h&gt;</a> to verify a minimum CMSIS-Core version as well as the target processor. Read more at <a class="el" href="group__version__control__gr.html">Version Control</a>. </p>
</div></div><!-- contents -->
</div><!-- PageDoc -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">
      <script type="text/javascript">
        <!--
        writeFooter.call(this);
        //-->
      </script> 
    </li>
  </ul>
</div>
</body>
</html>
